transcript on
if {[file exists rtl_work]} {
	vdel -lib rtl_work -all
}
vlib rtl_work
vmap work rtl_work

vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/clint_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/timer {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/timer/timer_top.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/rom {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/rom/rom_top.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_top.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_slave_if.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_rf.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_pri_enc.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_pri_dec.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_msel.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_master_if.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/wb_conmax/wb_conmax_arb.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart/wbuart.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart/ufifo.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart/txuart.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/uart/rxuart.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/wb2sdrc.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/timescale.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_define.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/rom {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/rom/rom.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/pll {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/pll/pll.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/gpio {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/gpio/gpio_defines.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/flash {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/flash/wb_flash.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/wishbone_bus_if.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/regs_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/PC_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/J_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/ins_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/id_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/easyriscv.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/do_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/ctrl_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/csrs_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/core {/home/wqz/projects/cpu/test/mycpu/rtl/core/alu_mod.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl {/home/wqz/projects/cpu/test/mycpu/rtl/riscv_min_sopc.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/db {/home/wqz/projects/cpu/test/mycpu/db/pll_altpll.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_xfr_ctl.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_top.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_req_gen.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_core.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_bs_convert.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_bank_fsm.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/sdrc_bank_ctl.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/sdram_controller/async_fifo.v}
vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/gpio {/home/wqz/projects/cpu/test/mycpu/rtl/peripheral/gpio/gpio_top.v}

vlog -vlog01compat -work work +incdir+/home/wqz/projects/cpu/test/mycpu/rtl/testbench {/home/wqz/projects/cpu/test/mycpu/rtl/testbench/tb_riscv.v}

vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cycloneive_ver -L rtl_work -L work -voptargs="+acc"  riscv_vlg_tst

add wave *
view structure
view signals
run -all
